//
//  Fraction.h
//  Oc03_属性
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
/** 属性 */

@property (nonatomic, assign ) NSInteger denominator;//分母
@property (nonatomic, assign) NSInteger numberator;//分子



/** 方法 */
- (instancetype)initWithNumberator: (NSInteger)numberator
                       denominator: (NSInteger)denominator;//初始化方法
+ (instancetype)fractionWithNumberator: (NSInteger)numberator
                           denominator:(NSInteger)denominator;//构造器
/** 运算,加减乘除 */
- (Fraction *)plusWithFraction: (Fraction *)frac;

/** 运算 减方法 */
- (Fraction *)minusWithFraction: (Fraction *)frac;
+ (Fraction *)fracMinuWithFraction : (Fraction *)frac;
/** 乘 */
- (Fraction *)mulWithFraction: (Fraction *)frac;
/** chu */
- (Fraction *)devidWithFraction : (Fraction *)frac;
/** 比较大小 */
- (Fraction *)compareWithFraction :(Fraction *)frac;
/** 约分*/
- (Fraction *) yueWithFraction;
@end
